package a.e.b.a;

import a.c.d;
import a.c.e;
import a.c.q;
import a.e.b.c.o;
import a.e.b.c.u;
import a.e.b.n;
import a.j.a.j;
import a.j.g;
import a.j.*;
import a.j.tb;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Map;

public class db
  implements u
{
  public static int a;
  
  public Collection a(e parame, o paramo)
  {
    ArrayList localArrayList = new ArrayList();
    q localq = paramo.e();
    if ((i.i) || ((localq instanceof g)))
    {
      ld localld = ((g)localq).w(parame);
      a(localld, localArrayList);
    }
    return localArrayList;
  }
  
  private void a(ld paramld, Collection paramCollection)
  {
    boolean bool = i.i;
    int m = i.h;
    int j;
    if (!bool) {
      if ((paramld instanceof qd))
      {
        qd localqd = (qd)paramld;
        j = 0;
        int k = localqd.h();
        do
        {
          if (j >= k) {
            break;
          }
          a(localqd.f(j), paramCollection);
          j++;
        } while (m == 0);
      }
    }
    if ((bool) || (paramld.y() > 0))
    {
      int i = 0;
      j = paramld.y();
      do
      {
        if (i >= j) {
          break;
        }
        paramCollection.add(paramld.c(i));
        i++;
      } while (m == 0);
    }
  }
  
  public n a(d paramd, o paramo)
  {
    return a(paramd, paramo, true);
  }
  
  public n b(d paramd, o paramo)
  {
    return a(paramd, paramo, false);
  }
  
  private n a(d paramd, o paramo, boolean paramBoolean)
  {
    boolean bool = i.i;
    q localq = paramo.e();
    if ((bool) || ((localq instanceof g)))
    {
      tb localtb = ((g)localq).t(paramd);
      j localj = ((g)localq).K();
      if ((bool) || (localj != null))
      {
        if (bool) {
          break label92;
        }
        if (localj.e(paramd)) {}
      }
      else
      {
        return paramBoolean ? jd.b(localtb) : jd.d(localtb);
      }
      label92:
      e locale1 = localj.b(paramd);
      if (paramBoolean)
      {
        if (bool) {
          break label127;
        }
        if (locale1 == paramd.e()) {
          return jd.b(localtb);
        }
      }
      label127:
      e locale2 = localj.c(paramd);
      if ((!paramBoolean) && (locale2 == paramd.f())) {
        return jd.d(localtb);
      }
      j.k_ localk_ = localj.d(paramd);
      Map localMap = (Map)localk_.a(paramBoolean ? "HierarchyManager.InterEdgeData.SOURCE_PORT" : "HierarchyManager.InterEdgeData.TARGET_PORT");
      if ((bool) || (localMap != null)) {
        return (jd)localMap.get(paramBoolean ? locale1 : locale2);
      }
    }
    return null;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.b.a.db

 * JD-Core Version:    0.7.0.1

 */